package com.cee.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cee.dto.CompletionDTO;
import com.cee.model.Completion;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CompletionMapper extends BaseMapper<Completion> {

    void saveCompletion(Completion completion);


    /**
     * 查询列表
     * @param completionDTO
     * @return
     */
    List<CompletionDTO> getCompletionList(CompletionDTO completionDTO);


    /**
     * 查询列表
     * @param examId
     * @return
     */
    List<CompletionDTO> getListByExamId(@Param("examId") Integer examId);


    void updateCompletionById(Completion completion);
}
